//
//  Blog.h
//  QSBK
//
//  Created by Eric Wang on 4/20/15.
//  Copyright (c) 2015 Eric Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"


@interface Blog : NSObject
@property(nonatomic,strong)NSString *created_at;
@property(nonatomic,strong)NSNumber *down;
@property(nonatomic,strong)NSNumber *up;
@property(nonatomic,strong)NSString *image;
@property(nonatomic,strong)NSString *state;
@property(nonatomic,strong)NSString *content;
@property(nonatomic,strong)NSString *published_at;
@property(nonatomic,strong)NSString *tag;
@property(nonatomic,strong)NSNumber *comments_count;
@property(nonatomic,strong)NSNumber *image_width;
@property(nonatomic,strong)NSNumber *image_height;
@property(nonatomic,assign)BOOL allow_comment;
@property(nonatomic,strong)NSNumber *article_id;
@property(nonatomic,strong,readonly)User *user;
@property(nonatomic,strong)NSArray *pic_size;
@property(nonatomic,strong)NSString *high_url;
@property(nonatomic,strong)NSString *low_url;
@property(nonatomic,strong)NSString *pic_url;




@property(nonatomic,strong)NSString *afterImage;
@property(nonatomic,strong)NSString *middleImage;
//-(void)fixBlogImage;


-(void)setCreated_at:(NSString *)created_at;
-(void)setDown:(NSNumber *)down;
-(void)setUp:(NSNumber *)up;
-(void)setImage:(NSString *)image;
-(void)setState:(NSString *)state;
-(void)setContent:(NSString *)content;
-(void)setPublished_at:(NSString *)published_at;
-(void)setTag:(NSString *)tag;
-(void)setComments_count:(NSNumber *)comments_count;
-(void)setImage_width:(NSNumber *)image_width;
-(void)setImage_height:(NSNumber *)image_height;
-(void)setAllow_comment:(BOOL)allow_comment;
-(void)setArticle_id:(NSNumber *)article_id;
-(void)setUser:(User *)user;
-(void)setPic_url:(NSString *)pic_url;
-(void)setHigh_url:(NSString *)high_url;
-(void)setLow_url:(NSString *)low_url;
-(void)setPic_size:(NSArray *)pic_size;
//




-(void)fixBlogImage:(NSString *)image;
@end
